#ifndef __BUZZERMUSIC_H__
#define __BUZZERMUSIC_H__

#include "Header.h"

uint code FreqTable[] = {
	0,
	57891, 58321, 58726, 59108, 59469, 59809, 60131, 60434, 60720, 60991, 61246, 61486,
	61714, 61928, 62131, 62322, 62502, 62673, 62833, 62985, 63128, 63263, 63391, 63511,
	63625, 63732, 63833, 63929, 64019, 64104, 64185, 64260, 64332, 64400, 64463, 64524,
	64580, 64634, 64685, 64732, 64778, 64820, 64860, 64898, 64934, 64968, 65000, 65030,
	65058, 65085, 65110, 65134, 65157, 65178, 65198, 65217, 65235, 65252, 65268, 65283
};

#ifdef DEF_ORG_FREQ_TABLE
uint code OrgFreqTable[] = {
	0,
	65, 69, 73, 78, 82, 87, 92, 98, 104, 110, 117, 123,
	131, 139, 147, 156, 165, 175, 185, 196, 208, 220, 233, 247,
	262, 277, 294, 311, 330, 349, 370, 392, 415, 440, 466, 494,
	523, 554, 587, 622, 659, 698, 740, 784, 831, 880, 932, 988,
	1047, 1109, 1175, 1245, 1319, 1397, 1480, 1568, 1661, 1760, 1865, 1976
};
#endif

#define NO_EMPTY 0x80

#define P		0
#define LL1 	1
#define LL1_ 	2
#define LL2 	3
#define LL2_ 	4
#define LL3 	5
#define LL4 	6
#define LL4_ 	7
#define LL5 	8
#define LL5_ 	9
#define LL6 	10
#define LL6_ 	11
#define LL7 	12
#define L1 		13
#define L1_ 	14
#define L2 		15
#define L2_ 	16
#define L3 		17
#define L4 		18
#define L4_ 	19
#define L5 		20
#define L5_ 	21
#define L6 		22
#define L6_ 	23
#define L7 		24
#define M1 		25
#define M1_ 	26
#define M2 		27
#define M2_ 	28
#define M3 		29
#define M4 		30
#define M4_ 	31
#define M5 		32
#define M5_ 	33
#define M6 		34
#define M6_ 	35
#define M7 		36
#define H1 		37
#define H1_ 	38
#define H2 		39
#define H2_ 	40
#define H3 		41
#define H4 		42
#define H4_ 	43
#define H5 		44
#define H5_ 	45
#define H6 		46
#define H6_ 	47
#define H7 		48
#define HH1 	49
#define HH1_ 	50
#define HH2 	51
#define HH2_ 	52
#define HH3 	53
#define HH4 	54
#define HH4_ 	55
#define HH5 	56
#define HH5_ 	57
#define HH6 	58
#define HH6_ 	59
#define HH7 	60

#endif
